//
//  Nomal_overload_operate.hpp
//  learnC++
//
//  Created by apple on 2018/6/4.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#ifndef Nomal_overload_operate_hpp
#define Nomal_overload_operate_hpp

#include <stdio.h>
#include <iostream>

class MyCents
{
private:
    int m_cents;
    
public:
    MyCents(int cents) { m_cents = cents; }
    
    int getCents() const { return m_cents; }
};

//常规重载operate+
MyCents operator+(const MyCents &c1, const MyCents &c2);


#endif /* Nomal_overload_operate_hpp */
